package com.lzw.security.service;

import com.lzw.security.entity.*;
import com.lzw.security.exception.MysqlUpdateException;
import com.lzw.security.exception.TidcNulException;
import com.lzw.security.ov.UserOV;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020-3-28 22:15
 * @description：
 * @modified By：
 * @version:
 */
public interface AddService {
    UserOV<Integer> addCategory(Category category) throws TidcNulException, MysqlUpdateException;
    UserOV<Integer> addCommodity(Commodity commodity) throws TidcNulException;
    UserOV<Integer> addSecKill(Seckill seckill) throws TidcNulException;
    UserOV<Integer> addDosing(Dosing dosing) throws TidcNulException;
//    UserOV<Integer> addDosingInCommodity(DosingCommodity dosingCommodity);
    UserOV<Integer> addCommodityInCart(Cart cart);
    UserOV<Integer> addAccessory(Accessory accessory) throws TidcNulException;
    UserOV<Integer> addAccessoryDosing(AccessoryDosing accessoryDosing);
    UserOV<Integer> addCommodityAccessory(CommodityAccessory commodityAccessory);
    UserOV<Integer> addCoupon(Coupon coupon);
    UserOV<Integer> addUserCoupon(Coupon coupon);

}
